package com.forum.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
// 用户实体类
public class User {


    private Long id;

    // 用户名
    private String username;
    // 密码
    private String password;
    // 头像
    private String avatar;
    // 昵称
    private String name;
    // 角色
    private String role;

    private Integer status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
}
